"use strict";
;
var Merry = /** @class */ (function () {
    function Merry() {
        this.name = 'merry1';
        this.age = 20;
    }
    Merry.prototype.cook = function () {
        console.log(this.name + '会做饭');
    };
    return Merry;
}());
;
var Luncy = /** @class */ (function () {
    function Luncy() {
        this.name = 'lucy1';
        this.age = 23;
    }
    Luncy.prototype.cook = function () {
        console.log(this.name + '会做饭');
    };
    return Luncy;
}());
;
var Boyfriend = /** @class */ (function () {
    function Boyfriend(girlfriend) {
        this.girlfriend = girlfriend;
    }
    return Boyfriend;
}());
;
var boy1 = new Boyfriend(new Merry());
var boy2 = new Boyfriend(new Luncy());
boy1.girlfriend.cook();
boy2.girlfriend.cook();
